package com.sdruixinggroup.mondayb2b.models;

import java.util.List;

/**
 * Created by Administrator on 2017/12/13.
 */

public class NearbyShop {

    /**
     * err_code : 0
     * err_msg : OK
     * timestamp : 1513094421
     * merchants : {"page":1,"data":[{"type":3,"longitude":120.744028,"latitude":31.272442,"distance":"163.9千米","merchant_id":6,"thumb":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/cad1236aa7af95365665ec973154783e.png","name":"区域管理员店铺","shopkeeper":"王小姐","phone":"15961856903","province_id":11,"city_id":73296,"county_id":89082,"street":"汉嘉大厦","saled_count":0,"goods_count":0},{"type":2,"longitude":120.744028,"latitude":31.272442,"distance":"163.9千米","merchant_id":7,"thumb":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/cad1236aa7af95365665ec973154783e.png","name":"二级推广商店铺","shopkeeper":"张先生","phone":"18501701762","province_id":11,"city_id":73296,"county_id":89082,"street":"汉嘉大厦","saled_count":11,"goods_count":0},{"type":1,"longitude":120.744028,"latitude":31.272442,"distance":"163.9千米","merchant_id":8,"thumb":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/cad1236aa7af95365665ec973154783e.png","name":"一级推广商店铺","shopkeeper":"赵先生","phone":"18501701761","province_id":11,"city_id":73296,"county_id":89082,"street":"汉嘉大厦","saled_count":0,"goods_count":0},{"type":1,"longitude":120.73598,"latitude":31.274665,"distance":"163.7千米","merchant_id":5,"thumb":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/cad1236aa7af95365665ec973154783e.png","name":"张小姐的店铺","shopkeeper":"张小姐","phone":"18501701769","province_id":6,"city_id":25,"county_id":41,"street":"松涛街","saled_count":0,"goods_count":0},{"type":1,"longitude":120.7359,"latitude":31.2746,"distance":"163.7千米","merchant_id":4,"thumb":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/cad1236aa7af95365665ec973154783e.png","name":"张小姐的店铺","shopkeeper":"张小姐","phone":"18501701766","province_id":11,"city_id":73296,"county_id":89082,"street":"汉嘉大厦","saled_count":6,"goods_count":3}],"page_size":10,"total_records":5,"total_pages":1}
     */

    private int err_code;
    private String err_msg;
    private int timestamp;
    private MerchantsBean merchants;

    public int getErr_code() {
        return err_code;
    }

    public void setErr_code(int err_code) {
        this.err_code = err_code;
    }

    public String getErr_msg() {
        return err_msg;
    }

    public void setErr_msg(String err_msg) {
        this.err_msg = err_msg;
    }

    public int getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(int timestamp) {
        this.timestamp = timestamp;
    }

    public MerchantsBean getMerchants() {
        return merchants;
    }

    public void setMerchants(MerchantsBean merchants) {
        this.merchants = merchants;
    }

    public static class MerchantsBean {
        /**
         * page : 1
         * data : [{"type":3,"longitude":120.744028,"latitude":31.272442,"distance":"163.9千米","merchant_id":6,"thumb":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/cad1236aa7af95365665ec973154783e.png","name":"区域管理员店铺","shopkeeper":"王小姐","phone":"15961856903","province_id":11,"city_id":73296,"county_id":89082,"street":"汉嘉大厦","saled_count":0,"goods_count":0},{"type":2,"longitude":120.744028,"latitude":31.272442,"distance":"163.9千米","merchant_id":7,"thumb":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/cad1236aa7af95365665ec973154783e.png","name":"二级推广商店铺","shopkeeper":"张先生","phone":"18501701762","province_id":11,"city_id":73296,"county_id":89082,"street":"汉嘉大厦","saled_count":11,"goods_count":0},{"type":1,"longitude":120.744028,"latitude":31.272442,"distance":"163.9千米","merchant_id":8,"thumb":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/cad1236aa7af95365665ec973154783e.png","name":"一级推广商店铺","shopkeeper":"赵先生","phone":"18501701761","province_id":11,"city_id":73296,"county_id":89082,"street":"汉嘉大厦","saled_count":0,"goods_count":0},{"type":1,"longitude":120.73598,"latitude":31.274665,"distance":"163.7千米","merchant_id":5,"thumb":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/cad1236aa7af95365665ec973154783e.png","name":"张小姐的店铺","shopkeeper":"张小姐","phone":"18501701769","province_id":6,"city_id":25,"county_id":41,"street":"松涛街","saled_count":0,"goods_count":0},{"type":1,"longitude":120.7359,"latitude":31.2746,"distance":"163.7千米","merchant_id":4,"thumb":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/cad1236aa7af95365665ec973154783e.png","name":"张小姐的店铺","shopkeeper":"张小姐","phone":"18501701766","province_id":11,"city_id":73296,"county_id":89082,"street":"汉嘉大厦","saled_count":6,"goods_count":3}]
         * page_size : 10
         * total_records : 5
         * total_pages : 1
         */

        private int page;
        private int page_size;
        private int total_records;
        private int total_pages;
        private List<DataBean> data;

        public int getPage() {
            return page;
        }

        public void setPage(int page) {
            this.page = page;
        }

        public int getPage_size() {
            return page_size;
        }

        public void setPage_size(int page_size) {
            this.page_size = page_size;
        }

        public int getTotal_records() {
            return total_records;
        }

        public void setTotal_records(int total_records) {
            this.total_records = total_records;
        }

        public int getTotal_pages() {
            return total_pages;
        }

        public void setTotal_pages(int total_pages) {
            this.total_pages = total_pages;
        }

        public List<DataBean> getData() {
            return data;
        }

        public void setData(List<DataBean> data) {
            this.data = data;
        }

        public static class DataBean {
            /**
             * type : 3
             * longitude : 120.744028
             * latitude : 31.272442
             * distance : 163.9千米
             * merchant_id : 6
             * thumb : https://yingdd.oss-cn-hangzhou.aliyuncs.com/cad1236aa7af95365665ec973154783e.png
             * name : 区域管理员店铺
             * shopkeeper : 王小姐
             * phone : 15961856903
             * province_id : 11
             * city_id : 73296
             * county_id : 89082
             * street : 汉嘉大厦
             * saled_count : 0
             * goods_count : 0
             */

            private int type;
            private double longitude;
            private double latitude;
            private String distance;
            private int merchant_id;
            private String thumb;
            private String name;
            private String shopkeeper;
            private String phone;
            private int province_id;
            private int city_id;
            private int county_id;
            private String street;
            private int saled_count;
            private int goods_count;

            public int getType() {
                return type;
            }

            public void setType(int type) {
                this.type = type;
            }

            public double getLongitude() {
                return longitude;
            }

            public void setLongitude(double longitude) {
                this.longitude = longitude;
            }

            public double getLatitude() {
                return latitude;
            }

            public void setLatitude(double latitude) {
                this.latitude = latitude;
            }

            public String getDistance() {
                return distance;
            }

            public void setDistance(String distance) {
                this.distance = distance;
            }

            public int getMerchant_id() {
                return merchant_id;
            }

            public void setMerchant_id(int merchant_id) {
                this.merchant_id = merchant_id;
            }

            public String getThumb() {
                return thumb;
            }

            public void setThumb(String thumb) {
                this.thumb = thumb;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getShopkeeper() {
                return shopkeeper;
            }

            public void setShopkeeper(String shopkeeper) {
                this.shopkeeper = shopkeeper;
            }

            public String getPhone() {
                return phone;
            }

            public void setPhone(String phone) {
                this.phone = phone;
            }

            public int getProvince_id() {
                return province_id;
            }

            public void setProvince_id(int province_id) {
                this.province_id = province_id;
            }

            public int getCity_id() {
                return city_id;
            }

            public void setCity_id(int city_id) {
                this.city_id = city_id;
            }

            public int getCounty_id() {
                return county_id;
            }

            public void setCounty_id(int county_id) {
                this.county_id = county_id;
            }

            public String getStreet() {
                return street;
            }

            public void setStreet(String street) {
                this.street = street;
            }

            public int getSaled_count() {
                return saled_count;
            }

            public void setSaled_count(int saled_count) {
                this.saled_count = saled_count;
            }

            public int getGoods_count() {
                return goods_count;
            }

            public void setGoods_count(int goods_count) {
                this.goods_count = goods_count;
            }
        }
    }
}
